home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_7.lha
/
3_7
/
3_7a.c
next >
Wrap
Text File
|
1993-08-08
|
275b
|
15 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Count the characters within the string.
/ Version 1
nt strlen(const char *s)
int i = 0;
while (*s++)
i++;
return i;